package com.service.atf.base.model;

import com.service.atf.base.core.ByteConvertion;
import com.luotao.devp.base.utils.ByteUtil;

/**
 * User: luotao
 * Date: 12-2-25
 * Time: 16:53
 */
public class TFCheckpoint implements ByteConvertion {

    private int createTime;

    private String filePath;


    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    @Override
    public ByteConvertion byte2Object(byte[] src) {
        this.filePath = ByteUtil.readString(src, 14, 50);
        return this;
    }

    @Override
    public String getFlowId() {
        return null;
    }

    @Override
    public long getThreadid() {
        return 0;
    }

    @Override
    public byte getType() {
        return (byte) '2';
    }

    @Override
    public byte getTradeType() {
        return (byte) '1';
    }

    @Override
    public byte[] object2Byte() {
        return null;
    }
}
